package com.yehongyu.mytools.basic.util.datetime;

import java.util.Date;

public class Convert {
	
	
	public String getString(Date d, String pattern){
		if (d==null)return "";
		return DateUtils.getString(d, pattern);
	} 
	
	public String getString(Date d){
		if (d==null)return "";
		return DateUtils.getString(d, "yyyy-MM-dd HH:mm:ss");
	}

}
